package com.contain.common.result;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @Auther: tianchao
 * @Date: 2021/7/8 23:42
 * @Description:
 */
@AllArgsConstructor
@NoArgsConstructor
public enum ResultCode implements IResultCode, Serializable {
    SUCCESS("00000", "操作成功"),
    SYSTEM_EXECUTION_ERROR("B0001", "系统执行出错"),
    TOKEN_INVALID_OR_EXPIRED("A0230", "token无效或已过期"),
    ACCESS_UNAUTHORIZED("A0301", "访问未授权"),
    ;
    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }

    private String code;

    private String msg;
}
